/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Ventanamultiple.java
 *
 * Created on 26-feb-2013, 15:21:06
 */
package practica1compi;

/**
 *
 * @author Ebert
 */
public class Ventanamultiple extends javax.swing.JFrame {
Interfaz VentanaAnterior;
    /** Creates new form Ventanamultiple */
    public Ventanamultiple(Interfaz principal) {
        initComponents();
          VentanaAnterior=principal;
        
    }
public void Actalizar(String texto){
jTextPane1.setText(texto);
//jTextPane1.setText("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Untitled Document</title><style>table{background:#000;color:#F9C;border: #700 solid 1px;}thead{background:#F39;padding: 3px 5px;color:#fff;font-size:1.2em;font-weight: bold;}td, th{border-bottom: #333 solid 1px;border-right:#333 solid 1px;}tr:nth-child(even){background:#222;}td:last-child,th:last-child{border-right:none;}tr:last-child td{border-bottom:none;}td,th{ margin: 0; padding: 3px 10px; vertical-align:top}</style></head><body><table cellpadding=\"0\" cellspacing=\"0\" ><thead><tr><th>No</th><th>Componente Lexico</th><th>Recuento</th></tr></thead><tbody><tr><td>1</td><td>Tag de Inicializacion</td><td>1</td>     </tr><tr><td>2</td><td>Tag de Finalizacion</td><td>1</td>      </tr><tr><td>3</td><td>funcion \"Print\"</td><td>2</td></tr><tr><td>4</td><td>Funcion \"Graficar\"</td><td>3</td></tr><tr><td>5</td><td>Funcion \"Operacion\"</td><td>2</td></tr><tr><td>6</td><td>Variables</td><td>4</td></tr><tr><td>7</td><td>enteros</td><td>23</td>        </tr><tr><td>8</td><td>flotantes</td><td>4</td>        </tr><tr><td>9</td><td>cadenas</td><td>2</td>        </tr> <tr><td>10</td><td>caracteres</td><td>1</td></tr><tr><td>11</td><td>Comentarios</td><td>2</td>        </tr>		<tr><td>12</td><td>abrir Parentesis ( </td><td>6</td></tr><tr><td>13</td><td>Cerrar parentesis )</td><td>6</td></tr><tr><td>14</td><td>=</td><td>4</td></tr><tr><td>15</td><td> ; </td><td>11</td></tr><tr><td>16</td><td> , </td><td>6</td></tr><tr>	<td>17</td><td> : </td><td>7</td></tr><tr><td>18</td><td> * </td><td>2</td></tr><tr><td>19</td><td> + </td><td>4</td></tr><tr><td>20</td><td> - </td><td>2</td></tr><tr><td>21</td><td>/</td><td>2</td></tr></tbody></table></body></html>");
}
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTextPane1.setContentType("text/html");
        jScrollPane1.setViewportView(jTextPane1);

        jButton1.setText("Cerrar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 641, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton1))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
this.VentanaAnterior.setVisible(true);
this.setVisible(false);
}//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JScrollPane jScrollPane1;
    public javax.swing.JTextPane jTextPane1;
    // End of variables declaration//GEN-END:variables
}
